﻿<?php
global $base_path, $base_url;
$rows = $view->result;
//print'<pre>';
//var_dump($view->result);
//print'</pre>';
?>

<table class = "product_special_head_tb" style = "width:100%; border-collapse:collapse;" cellpadding = "0" cellspacing = "0">
    <tbody>
        <tr>
            <td style = "width:34px; text-align:center" valign = "bottom"><img src = "<?php print $base_path; ?>sites/all/themes/dienmayducthinh/images/icon_hogiadinh.gif" /></td>
            <td class = "product_special_head" valign = "bottom">Sản phẩm hot</td>
        </tr>
    </tbody>
</table>
<div class = "special_group_bt">
    <div class = "special_group_top">
        <table>
            <tbody>
                <tr>
                    <?php
                    if (count($rows)) :
                        foreach ($rows as $item) :
                            ?>
                            <td valign = "top" width = "197px">
                                <div id = "<?php print $item->nid?>" class = "tooltip">
                                    <div class = "home_special_pro_name"><a href = "<?php print drupal_get_path_alias('node/' . $item->nid); ?>" title = "<?php print $item->node_title; ?>"><?php print $item->node_title; ?></a></div>
                                    <div class = "home_special_pro_img"><a href = "<?php print drupal_get_path_alias('node/' . $item->nid); ?>">
                                            <img width="120" height="120" src = "<?php print file_create_url($item->field_field_image[0]["rendered"]["#item"]["uri"]); ?>" alt = "<?php print $item->node_title; ?>" /></a></div>
                                    <div class = "home_special_pro_detail">
                                        <ul>
                                            <li>
                                                <div class = "p_sum">
                                                    <?php print $item->field_field_motasanpham[0]["rendered"]["#markup"]; ?>
                                                </div>
                                            </li>
                                            <li class = "p_newp">Giá bán : <b><?php print $item->field_field_giaban[0]["rendered"]["#markup"]; ?> VNĐ</b></li>
                                        </ul>
                                    </div>
                                </div>
                                <div class = "home_special_pro_buy"><a href = "<?php print drupal_get_path_alias('node/' . $item->nid); ?>"><img src = "<?php print $base_path; ?>sites/all/themes/dienmayducthinh/images/detail_bt.gif" /></a> <a href = "javascript:addToShoppingCart('pro','1393',1,'10200000');"><img src = "<?php print $base_path; ?>sites/all/themes/dienmayducthinh/images/buy_bt.gif" /></a></div>

                                <div id = "data_<?php print $item->nid?>" class = "hidden-tip" style = "display: none; ">
                                    <div class = "protip-title"><?php print $item->node_title; ?> - <span><?php print $item->field_field_giaban[0]["rendered"]["#markup"]; ?> VNĐ</span></div>
                                    <div class = "protip-content">
<!--                                        <p class = "protip-promotion">
                                            <b>Khuyến mãi:</b>
                                            Miễn phí lắp đặt và vận chuyển
                                        </p>-->
                                        <p class = "protip-summary">
                                           <?php print $item->field_field_motasanpham[0]["rendered"]["#markup"]; ?><br />

                                        </p>
                                    </div>
                                </div>
                            </td>
                            <td width = "15px"></td>
                            <?php
                        endforeach;
                    endif;
                    ?>   

                </tr>
            </tbody>
        </table>
    </div>
</div>
<div class = "product_special_more"><a href = "/collection/dieu-hoa-cho-ho-gia-dinh">Xem thêm &gt;
        &gt;
    </a></div>
